package com.itheima.datasource;

import com.itheima.framework.JdbcTemplate;
import com.itheima.utils.JdbcUtils;

public class CeShi {
    public static void main(String[] args) throws Exception{
        JdbcTemplate jdbcTemplate = new JdbcTemplate(JdbcUtils.getDataSource());

        jdbcTemplate.update("INSERT INTO `zuoye1`.`account`(`name`,`money`) VALUES(?,?);","刘能",4000);
        jdbcTemplate.update("INSERT INTO `zuoye1`.`account`(`name`,`money`) VALUES(?,?);","赵四",5000);
        jdbcTemplate.update("INSERT INTO `zuoye1`.`account`(`name`,`money`) VALUES(?,?);","大头",3000);
        jdbcTemplate.update("INSERT INTO `zuoye1`.`account`(`name`,`money`) VALUES(?,?);","二明",4900);
        jdbcTemplate.update("INSERT INTO `zuoye1`.`account`(`name`,`money`) VALUES(?,?);","小花",3500);
    }
}
